﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Composite.Wpf.Events;

namespace Microsoft.WVB.Silverlight.Infrastructure
{
    [global::System.AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
    public sealed class NotificationEventHandlerAttribute : Attribute
    {
        readonly string _topic;

        // This is a positional argument
        public NotificationEventHandlerAttribute(string topic)
        {
            this._topic = topic;
        }
        public NotificationEventHandlerAttribute(string topic, ThreadOption threadoption)
        {
            _topic = topic;
            _threadoption = threadoption;
        }

        public string Topic
        {
            get { return _topic; }
        }
        private ThreadOption _threadoption;
        public ThreadOption HandlerThreadOption
        {
            get { return _threadoption; }
        }
    }

}
